package com.sky.com.sky.service;

import com.sky.entity.AddressBook;

import java.util.List;

public interface AddressBookService {


    //地址薄查询
    List<AddressBook> getList();

    //新增地址
    void save(AddressBook addressBook);

    AddressBook getDefault();

    //根据id调查
    AddressBook getById(Long id);

    // 修改地址
    void updateById(AddressBook addressBook);

    //删除地址
    void deleteById(Long id);



    //添加收货地址
    void add(AddressBook addressBook);

    //设置默认收货地址
    void setDefaultAddress(AddressBook addressBook);

    //查询默认收货地址
    AddressBook getDefaultAddress();





}
